home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XEmptyRegion.z / XEmptyRegion
Encoding:
Text File  |  1998-10-30  |  3.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXEEEEmmmmppppttttyyyyRRRReeeeggggiiiioooonnnn((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))  XXXXEEEEmmmmppppttttyyyyRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XEmptyRegion, XEqualRegion, XPointInRegion, XRectInRegion -
  10.           determine if regions are empty or equal
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           Bool XEmptyRegion(_r)
  14.                 Region _r;
  15.  
  16.           Bool XEqualRegion(_r_1, _r_2)
  17.                 Region _r_1, _r_2;
  18.  
  19.           Bool XPointInRegion(_r, _x, _y)
  20.                 Region _r;
  21.                 int _x, _y;
  22.  
  23.           int XRectInRegion(_r, _x, _y, _w_i_d_t_h, _h_e_i_g_h_t)
  24.                 Region _r;
  25.                 int _x, _y;
  26.                 unsigned int _w_i_d_t_h, _h_e_i_g_h_t;
  27.  
  28.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  29.           _r         Specifies the region.
  30.  
  31.           _r_1
  32.           _r_2        Specify the two regions.
  33.  
  34.           _w_i_d_t_h
  35.           _h_e_i_g_h_t    Specify the width and height, which define the
  36.                     rectangle.
  37.  
  38.           _x
  39.           _y         Specify the x and y coordinates, which define the
  40.                     point or the coordinates of the upper-left corner
  41.                     of the rectangle.
  42.  
  43.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  44.           The _X_E_m_p_t_y_R_e_g_i_o_n function returns _T_r_u_e if the region is
  45.           empty.
  46.  
  47.           The _X_E_q_u_a_l_R_e_g_i_o_n function returns _T_r_u_e if the two regions
  48.           have the same offset, size, and shape.
  49.  
  50.           The _X_P_o_i_n_t_I_n_R_e_g_i_o_n function returns _T_r_u_e if the point (x, y)
  51.           is contained in the region r.
  52.  
  53.           The _X_R_e_c_t_I_n_R_e_g_i_o_n function returns _R_e_c_t_a_n_g_l_e_I_n if the
  54.           rectangle is entirely in the specified region, _R_e_c_t_a_n_g_l_e_O_u_t
  55.           if the rectangle is entirely out of the specified region,
  56.           and _R_e_c_t_a_n_g_l_e_P_a_r_t if the rectangle is partially in the
  57.           specified region.
  58.  
  59.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  60.  
  61.  
  62.  
  63.      PPPPaaaaggggeeee 1111                                          ((((pppprrrriiiinnnntttteeeedddd 4444////33330000////99998888))))
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXEEEEmmmmppppttttyyyyRRRReeeeggggiiiioooonnnn((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))  XXXXEEEEmmmmppppttttyyyyRRRReeeeggggiiiioooonnnn((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           XCreateRegion(3X11), XIntersectRegion(3X11)
  75.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.